-- GENERATED SPELL FOR [Godo Cloudcleaver] --


function spell0_30590(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30590', 595, 1)
end

function spell1_30590(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30590', 5340, 1)
end

function spell2_30590(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_30590', 528, 1)
end

function spell3_30590(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_30590', 2000, 1)
end

function Sorts_30590(pUnit, Event)
local choix_sorts_30590 = math.random(0, 3)
if choix_sorts_30590 == 0 then
pUnit:RegisterEvent('spell0_30590', 1, 1)
end
if choix_sorts_30590 == 1 then
pUnit:RegisterEvent('spell1_30590', 1, 1)
end
if choix_sorts_30590 == 2 then
pUnit:RegisterEvent('spell2_30590', 1, 1)
end
if choix_sorts_30590 == 3 then
pUnit:RegisterEvent('spell3_30590', 1, 1)
end
end

function mob30590_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30590', math.random(1500, 3000), 1)
end

function mob30590_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30590_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30590_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30590, 1, 'mob30590_Action')
RegisterUnitEvent(30590, 2, 'mob30590_Leave')
RegisterUnitEvent(30590, 3, 'mob30590_Kill')
RegisterUnitEvent(30590, 4, 'mob30590_Die')
